package com.deer.wms.instock.service.enter.impl;

import com.deer.wms.ASN.manage.model.asn.AsnDetail;
import com.deer.wms.ASN.manage.model.asn.AsnMaster;
import com.deer.wms.base.system.model.OrderToErpBO;
import com.deer.wms.instock.model.erpType.ErpType;
import com.deer.wms.instock.service.enter.AbstractEnterErp;
import com.deer.wms.system.manage.service.CodeRuleService;
import com.deer.wms.ware.task.service.PushErpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @Author: xu
 * @Date: 2022/06/20/11:14
 * @Description:  702来料检验申请单======>>>>71采购订单
 */
@Component
public  class Checkout extends AbstractEnterErp {
    @Autowired
    private PushErpService pushErpService;
    public ErpType gainType() {
       return new ErpType(null, 1);
    }

    /**
     * 字段添加
     *  @param orderToErpBO
     * @param asnMaster
     * @param asnMap
     */
    @Override
    protected void add(OrderToErpBO orderToErpBO, AsnMaster asnMaster, Map<String, AsnDetail> asnMap) {
       return;
    }
    protected void pushErp(OrderToErpBO orderToErpBO){
        pushErpService.CreateIMBill(orderToErpBO);
    }


}
